//
//  FirstTableViewCell.m
//  Cook
//
//  Created by 0.0 on 15-4-16.
//  Copyright (c) 2015年 dingjun. All rights reserved.
//

#import "FirstTableViewCell.h"

@implementation FirstTableViewCell

- (void)dealloc
{
    [_firstDiseaseLabel release];
    [_firstImageView release];
    [_firstNameLabel release];
    
    [super dealloc];
}

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    
    if (self) {
        
        self.firstImageView = [[UIImageView alloc] initWithFrame:CGRectMake(5, 5, 60, 60)];
       
        self.firstNameLabel = [[UILabel alloc] initWithFrame:CGRectMake(_firstImageView.frame.origin.x + _firstImageView.frame.size.width + 10, _firstImageView.frame.origin.y, self.frame.size.width, _firstImageView.frame.size.height / 2)];
        
        self.firstDiseaseLabel = [[UILabel alloc] initWithFrame:CGRectMake(_firstNameLabel.frame.origin.x  + 10, _firstNameLabel.frame.origin.y + _firstNameLabel.frame.size.height, self.frame.size.width, _firstImageView.frame.size.height / 2)];
    
        [self.contentView addSubview:_firstImageView];
        [self.contentView addSubview:_firstNameLabel];
        [self.contentView addSubview:_firstDiseaseLabel];
        
        [_firstDiseaseLabel release];
        [_firstImageView release];
        [_firstNameLabel release];
    }
    
    return self;
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
